package com.learnosity.extendotext.style
{
	import com.learnosity.extendotext.Rule;
	import flash.text.engine.ElementFormat;
	import flash.text.engine.TextBaseline;
		
	public class Opacity
	{

		static public function apply(rule:Rule,format:ElementFormat):ElementFormat{
			format.alpha = 1-Number(rule.value);
			return format;
		}

	}
}